<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<form name="dashboardForm">

<tr>
    <td ><table width="960" border="0" cellspacing="0" cellpadding="0">

	  <tr>
		<td><table width="960" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td><iframe id="chartReport" name="chartReport" align="middle" src ="/birt/preview?__report=examReport.rptdesign" width="500" height="276" frameborder="0" scrolling ="no" ></iframe></td>
			<td width="400px"><table width="400px" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td class="leftCorner1"></td>
				<td rowspan="2"  bgcolor="#92223d" ><div align="center" class="style4">Latest Exam Result</div></td>
				<td class="rightCorner1"></td>
			  </tr>
			  <tr bgcolor="#92223d" >
				<td height="10"></td>
				<td ></td>
			  </tr>
			  <tr >
			   <td background="images/boxbg1.gif"></td>
				<td background="images/boxbg1.gif" height="232"  valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr >
					  <td class="dataTableHeader1">Exam </td>
					  <td class="dataTableHeader1">Examinee</td>
					  <td class="dataTableHeader1">ExamID</td>
					  <td class="dataTableHeader1">Score %</td>
					</tr>
					<logic:present name="dashboardForm" property="examwiseDataList" >
					<logic:iterate name="dashboardForm" property="examwiseDataList" id="examwiseData">
					  <tr >
						<td class="dataTableColumn1"><bean:write name="examwiseData" property="examName"/> &nbsp;</td>
						<td class="dataTableColumn1"><bean:write name="examwiseData" property="examineeName"/>&nbsp;</td>
						<td class="dataTableColumn1"><bean:write name="examwiseData" property="examName"/>&nbsp;</td>
						<bean:define name="examwiseData" property="score" id="scoreID"/>
						<bean:define name="examwiseData" property="examType.maximumMarks" id="maxScoreID"/>
						<%Float score = new Float(String.valueOf(scoreID));
						  Float maxScore = new Float(String.valueOf(maxScoreID));
						
						%>
						<td class="dataTableColumn1"><%=( new Float((score/maxScore)*100)).intValue()%>%</td>
					  </tr>
					   </logic:iterate>
					  </logic:present>
				</table></td>
				<td background="images/boxbg1.gif"></td> 				 
			  </tr>

			</table></td>
			<td width="20"> &nbsp;</td>
		  </tr>
		</table></td>   
	  </tr>
	  <tr>
		
		
		<td><table width="960" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		  <td width="50px">&nbsp;</td>
			<td width="400px"><table width="400px" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td  class="leftCorner3"></td>
				<td rowspan="2"  bgcolor="#781d72" ><div align="center" class="style4">Client Summary</div></td>
				<td class="rightCorner3"></td>
			  </tr>
			  <tr bgcolor="#781d72" >
				<td height="10"></td>
				<td ></td>
			  </tr>
			  <tr >
				<td background="images/boxbg3.gif"></td>
				<td background="images/boxbg3.gif" height="232"  valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr >
					  <td class="dataTableHeader3">Name :</td>
					  <td class="dataTableHeader3">
					  <logic:present name="dashboardForm" property="clientType">
					  <bean:write name="dashboardForm" property="clientType.clientName"/>&nbsp;
					  </logic:present>
					  </td>
					  <td class="dataTableHeader3"></td>
					  <td class="dataTableHeader3"></td>
					</tr>
					<tr >
					  <td class="dataTableHeader3">Mobile Number :</td>
					  <td class="dataTableHeader3"><logic:present name="dashboardForm" property="clientType.contactType"><bean:write name="dashboardForm" property="clientType.contactType.mobileNumber"/>&nbsp;</logic:present>&nbsp;</td>
					  <td class="dataTableHeader3"></td>
					  <td class="dataTableHeader3"></td>
					</tr>
					<tr >
					  <td class="dataTableHeader3">Total Exams :</td>
					  <td class="dataTableHeader3"><bean:write name="dashboardForm" property="totalExams"/>&nbsp;</td>
					  <td class="dataTableHeader3"></td>
					  <td class="dataTableHeader3"></td>
					</tr>
					<tr >
					  <td class="dataTableHeader3">Total Active Examinee :</td>
					  <td class="dataTableHeader3"><bean:write name="dashboardForm" property="totalExaminee"/>&nbsp;</td>
					  <td class="dataTableHeader3"></td>
					  <td class="dataTableHeader3"></td>
					</tr>
					<tr >
					  <td class="dataTableHeader3">Total Examiner :</td>
					  <td class="dataTableHeader3"><bean:write name="dashboardForm" property="totalExaminer"/>&nbsp;</td>
					  <td class="dataTableHeader3"></td>
					  <td class="dataTableHeader3"></td>
					</tr>
					
				</table></td>
				<td background="images/boxbg3.gif"></td>
			  </tr>
			</table></td>
			<td>&nbsp;</td>
			<td width="400px"><table width="400px" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td  class="leftCorner2"></td>
				<td rowspan="2"  bgcolor="#604F96" ><div align="center" class="style4">Recent Examinee</div></td>
				<td  class="rightCorner2"></td>
			  </tr>
			  <tr bgcolor="#604F96" >
				<td height="10"></td>
				<td ></td>
			  </tr>
			  <tr >
				<td background="images/boxbg2.gif"></td>
				<td background="images/boxbg2.gif" height="232"  valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr >
					  <td class="dataTableHeader2">First Name </td>
					  <td class="dataTableHeader2">Last Name</td>
					  <td class="dataTableHeader2">Mobile</td>
					  <td class="dataTableHeader2">Score</td>
					  <td class="dataTableHeader2">Exam Name</td>
					</tr>
					<logic:present name="dashboardForm" property="recentExamineeList">
					<logic:iterate name="dashboardForm" property="recentExamineeList" id="recentExamineeListID">
					  <tr >
						<td class="dataTableColumn2"><bean:write name="recentExamineeListID" property="firstName"/>&nbsp; </td>
						<td class="dataTableColumn2"><bean:write name="recentExamineeListID" property="lastName"/>&nbsp;</td>
						<td class="dataTableColumn2"><bean:write name="recentExamineeListID" property="contactType.mobileNumber"/>&nbsp;</td>
						<td class="dataTableColumn2"><bean:write name="recentExamineeListID" property="examScore"/>&nbsp;/<bean:write name="recentExamineeListID" property="examType.maximumMarks"/></td>
						<td class="dataTableColumn2"><bean:write name="recentExamineeListID" property="examType.name"/>&nbsp;</td>
					  </tr>
					   </logic:iterate>
					  </logic:present>
				</table></td>
				<td background="images/boxbg2.gif"></td>
			  </tr>
			</table></td>
			<td width="20"> &nbsp;</td>
		  </tr>
		</table></td>  
		



  
  </tr>
  </table>
  </td>
 
  </tr>
  <tr>
	<td colspan="3" class="footer"><div align="center" class="setupmenu">Copyright 2010 iPariksha Inc. All Rights Reserved.</div></td>   
</tr>
</table>
</form>